Skip to content

feat: add document.received + PATCH /volunteer/:id/doc/:type endpoint#417

Open
nadavosa wants to merge 20 commits intodevelopfrom
feat/document-received
Open

feat: add document.received + PATCH /volunteer/:id/doc/:type endpoint#417
nadavosa wants to merge 20 commits intodevelopfrom
feat/document-received

Conversation

@nadavosa
Copy link
Copy Markdown
Collaborator

Summary

  • Add received (boolean) and receivedOn (timestamp) columns to the document table
  • New PATCH /volunteer/:id/doc/:type endpoint — marks a document as received/not received
  • Expose received and receivedOn in the document DTO

Changes

  • Migration: 1777303247669-add-document-received.ts
  • document.entity.ts — new received + receivedOn fields
  • dto-document.ts — serialise new fields
  • volunteer-doc.schema.ts — new volunteerDocSchemaPatchBody schema
  • doc.routes.ts — new PATCH /:type route

Endpoint

`PATCH /volunteer/:id/doc/:type`
Body: `{ "received": true }`

  • Sets `received = true` and `receivedOn = NOW()`
  • Sets `received = false` and clears `receivedOn` when false

SDK changes needed (local publish)

Add to `ApiDocumentGet`:
```ts
received: boolean;
receivedOn: Date | null;
```
Add new interface:
```ts
export interface ApiDocumentPatch {
received: boolean;
}
```

Closes

Unblocks

arturasmckwcz and others added 20 commits April 13, 2026 10:04
feat: Notion → BE data migration (status, matching, appreciation, comments)
Closes #416

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants